import fetch from '@/config/fetch'

/**
 * Created by Administrator on 2017/9/19.
 */

// 获取alpha key
// export const getAlphaKey = (data, loadingObj) => fetch('/alpha/get', data, loadingObj, 'power-send-check');

export const checkOk = (data, loadingObj) => fetch('/pageKey/get.dnl', data, loadingObj, 'oceanside-send-and-check') // 查重加密
export const register = (data, loadingObj) => fetch('/user/register', data, loadingObj, ''); // 注册
export const imgCode = (data, loadingObj) => fetch('/user/imgCode', data, loadingObj, ''); // imgCode
export const getUserData = (data, loadingObj) => fetch('/user/list', data, loadingObj, 'permission'); // 获取好友推荐列表
export const bossLogin = (data, loadingObj) => fetch('/login/loginBoss/imgcheck', data, loadingObj, 'single-sign-on-center') // 登录
export const bossTheme = (data, loadingObj) => fetch('/login/saveTheme/recheck ', data, loadingObj, 'single-sign-on-center') // oem保存主题
export const userManagement = (data, loadingObj) => fetch('/user/list', data, loadingObj, 'crm-system'); // 用户管理
export const getUploadToken = (data, loadingObj) => fetch('/qiniu/getToken', data, loadingObj, 'oceanside-send-and-check') // 用户管理
export const submission = (data, loadingObj) => fetch('/oem/oemInfoInput', data, loadingObj, 'crm-system'); // 用户信息提交
export const getUser = (data, loadingObj) => fetch('/user/getUser', data, loadingObj, 'crm-system'); // 查看用户
export const changeUserPassword = (data, loadingObj) => fetch('/user/changeUserPassword/recheck', data, loadingObj, 'crm-system') // 查看用户
export const recharge = (data, loadingObj) => fetch('/user/recharge', data, loadingObj, 'crm-system'); // 账户充值
export const getRecord = (data, loadingObj) => fetch('/transaction-record/list', data, loadingObj, 'crm-system') // 账户充值
export const stopUser = (data, loadingObj) => fetch('/user/stopUser', data, loadingObj, 'crm-system'); // 账户充值
export const listForTeeFeeRate = (data, loadingObj) => fetch('/user/listForTeeFeeRate', data, loadingObj, 'crm-system'); // 账户充值
export const patchSetRate = (data, loadingObj) => fetch('/user/patchSetRate/recheck', data, loadingObj, 'crm-system'); // 账户充值
export const selectLoginName = (data, loadingObj) => fetch('/user/selectLoginName', data, loadingObj, 'crm-system'); // 模糊查询
// export const selectLoginList = (data, loadingObj) => fetch('/user/selectLoginNameAndUserId', data, loadingObj, 'crm-system'); // 模糊查询代理账号列表
export const selectAgentOne = (data, loadingObj) => fetch('/user/getUserId', data, loadingObj, 'crm-system'); // 查询代理账号
export const selectAgentList = (data, loadingObj) => fetch('/user/initUserList', data, loadingObj, 'crm-system'); // 模糊查询代理账号列表

export const teacherUpload = (data, loadingObj) => fetch('/uppackageListloadForEntity', data, loadingObj, 'teacher-system', 'upload') // 测试上传到服务器

export const acquireOemInfo = (data, loadingObj) => fetch('/oem/acquireOemInfo', data, loadingObj, 'crm-system'); // 获取OEM信息

export const uploadOemPicture = (data, loadingObj) => fetch('/oem/uploadOemPicture', data, loadingObj, 'crm-system'); // 获取OEM信息
export const initEmployeeSelect = (data, loadingObj) => fetch('/user/initEmployeeSelect', data, loadingObj, 'crm-system') // 获取添加代理时业务员下拉列表
export const uploadUserPicture = (data, loadingObj) => fetch('/user/uploadUserPicture', data, loadingObj, 'crm-system'); // 上传客户相关图片

export const getOemPayQRCode = (data, loadingObj) => fetch('/oem-order/getOemPayQRCode', data, loadingObj, 'OEM-recharge-system') // 获取OEM付款二维码

export const rechargeAmount = (data, loadingObj) => fetch('/transaction-record/getOemPayQRCode/recheck', data, loadingObj, 'crm-system') // 获取OEM付款二维码

export const save = (data, loadingObj) => fetch('/user/save/recheck', data, loadingObj, 'crm-system') //添加客户
export const accountAgentBalance = (data, loadingObj) => fetch('/user/selectSumUserBalance', data, loadingObj, 'crm-system') //统计代理余额
export const listForCard = (data, loadingObj) => fetch('/user/listForCard', data, loadingObj, 'crm-system') // crm 卡表
export const viewFlowEchars = (data, loadingObj) => fetch('/user/viewFlowEchars', data, loadingObj, 'crm-system') // crm 卡表

export const getEquipmentList = (data, loadingObj) => fetch('/equipment/list', data, loadingObj, 'inventory-system') // inventory-system 设备列表

export const selectPoolName = (data, loadingObj) => fetch('/equipment/selectPoolName', data, loadingObj, 'inventory-system') // inventory-system 流量池下拉列表

export const packageList = (data, loadingObj) => fetch('/set-meal/list', data, loadingObj, 'inventory-system') // inventory-system 套餐列表

export const packageDelete = (data, loadingObj) => fetch('/set-meal/delete', data, loadingObj, 'inventory-system') // inventory-system 删除套餐

export const packageconserve = (data, loadingObj) => fetch('/set-meal/save/recheck', data, loadingObj, 'inventory-system') // inventory-system 保存套餐

export const packageDetail = (data, loadingObj) => fetch('/set-meal/gesubmitSingleCardtSetMeal', data, loadingObj, 'inventory-system') // inventory-system 套餐详情

// export const domainBinding = (data, loadingObj) => fetch('/hostname/updateHostName', data, loadingObj, 'OEM-setting-system') // 域名绑定

// export const checkDomain = (data, loadingObj) => fetch('/hostname/checkHostName', data, loadingObj, 'OEM-setting-system') // 校验

// export const uploadKey = (data, loadingObj) => fetch('/hostname/uploadKey', data, loadingObj, 'OEM-setting-system', 'upload') // 上传

export const regulationList = (data, loadingObj) => fetch('/num-rule/list', data, loadingObj, 'inventory-system') // 规则列表

export const addRegulation = (data, loadingObj) => fetch('/num-rule/save', data, loadingObj, 'inventory-system') // 添加规则

export const singleCardStorage = (data, loadingObj) => fetch('/card/acquireCardPageData', data, loadingObj, 'inventory-system') // 添加规则

export const submitSingleCard = (data, loadingObj) => fetch('/card/cardSingleInventory', data, loadingObj, 'inventory-system') // 域名绑定

export const submitPrimaryFlowPool = (data, loadingObj) => fetch('/firstfixedpool/save', data, loadingObj, 'inventory-system') // 保存修改一级流量池

export const primaryFlowPoolList = (data, loadingObj) => fetch('/firstfixedpool/list', data, loadingObj, 'inventory-system') // 一级流量池列表

export const secondaryFlowPoolList = (data, loadingObj) => fetch('/secondtotalpool/list', data, loadingObj, 'inventory-system') // 二级流量池列表

export const editPrimaryFlowPoolList = (data, loadingObj) => fetch('/firstfixedpool/getFirstfixedpool', data, loadingObj, 'inventory-system') // 编辑一级流量池传参

export const viewprimaryFlowPoolSubordinateCard = (data, loadingObj) => fetch('/firstfixedpool/listForCard', data, loadingObj, 'inventory-system') // 查看一级流量池下属卡

export const getChannelcompanyForSelect = (data, loadingObj) => fetch('/firstfixedpool/getChannelcompanyForSelect', data, loadingObj, 'inventory-system') // 查看一级流量池下拉列表

export const listForAgentForInntSelect = (data, loadingObj) => fetch('/secondtotalpool/listForAgentForInntSelect', data, loadingObj, 'inventory-system') // 二级流量池下拉列表

export const viewSecondaryFlowPoolSubordinateCard = (data, loadingObj) => fetch('/secondtotalpool/listForCard', data, loadingObj, 'inventory-system') // 二级流量池下属卡

export const listAccountByChannelCompanyId = (data, loadingObj) => fetch('/account/listAccountByChannelCompanyId', data, loadingObj, 'OEM-setting-system') // 域名绑定

export const ordinaryUsersList = (data, loadingObj) => fetch('/ordinary-users/list', data, loadingObj, 'OEM-setting-system')
export const ordinaryUsersDelete = (data, loadingObj) => fetch('/ordinary-users/delete', data, loadingObj, 'OEM-setting-system')
export const ordinaryUsersSave = (data, loadingObj) => fetch('/ordinary-users/save', data, loadingObj, 'OEM-setting-system')

export const listOrdinaryUsers = (data, loadingObj) => fetch('/ordinary-users/listOrdinaryUsers', data, loadingObj, 'OEM-setting-system')

// 获取普通代理列表
export const getOrdinaryAgent = (data, loadingObj) => fetch('/user/getOrdinaryAgent', data, loadingObj, 'crm-system')
// 出库
export const outboundOrderSave = (data, loadingObj) => fetch('/outbound-order/save/recheck', data, loadingObj, 'inventory-system')
// 新oem出库接口 小宇新增
export const oemOutboundOrderSave = (data, loadingObj) => fetch('/outbound-order/newOemOutboundorder/recheck', data, loadingObj, 'inventory-system')
// 获取出库列表
export const outboundList = (data, loadingObj) => fetch('/outbound-order/list', data, loadingObj, 'inventory-system')
// 代理出库
export const agentOutStock = (data, loadingObj) => fetch('/outbound-order/agentOutStock', data, loadingObj, 'inventory-system')

export const secondaryFlowPool = (data, loadingObj) => fetch('/secondtotalpool/list', data, loadingObj, 'inventory-system') // 二级流量池下属卡

export const getSectionCardByCardNumber = (data, loadingObj) => fetch('/fiorderManagementrstfixedpool/getSectionCardByCardNumber', data, loadingObj, 'inventory-system') // 二级流量池下属卡
// 返佣列表
export const returnCommissionList = (data, loadingObj) => fetch('/agent-apply-balance/list', data, loadingObj, 'OEM-setting-system')
// 返佣列表数据统计
export const accountData = (data, loadingObj) => fetch('/agent-apply-balance/statisticsApplyBalance', data, loadingObj, 'OEM-setting-system')

export const auditPass = (data, loadingObj) => fetch('/agent-apply-balance/pass/recheck', data, loadingObj, 'OEM-setting-system') // 审核通过
export const newAuditPass = (data, loadingObj) => fetch('/agent-apply-balance/passAgentApplyBalance/recheck', data, loadingObj, 'OEM-setting-system') // 审核通过

export const auditReject = (data, loadingObj) => fetch('/agent-apply-balance/refuse/recheck', data, loadingObj, 'OEM-setting-system') // 审核驳回

export const cashOut = (data, loadingObj) => fetch('/agent-apply-balance/save/recheck', data, loadingObj, 'OEM-setting-system') // 审核驳回

export const auditList = (data, loadingObj) => fetch('/customer/customerPage', data, loadingObj, 'crm-system') // 审核列表

export const findingsOfAudit = (data, loadingObj) => fetch('/customer/examine', data, loadingObj, 'crm-system') // 审核结果

export const crmCardList = (data, loadingObj) => fetch('/card/list', data, loadingObj, 'crm-system') // 卡板管理
export const updateCardRemark = (data, loadingObj) => fetch('/card/updateCardRemarks', data, loadingObj, 'crm-system') // 修改卡板备注
export const getCardFlowInfo = (data, loadingObj) => fetch('/card/getCardFlowInfo', data, loadingObj, 'crm-system') // 卡板管理

export const crmCardListForSpare = (data, loadingObj) => fetch('/card/pageListForExchange', data, loadingObj, 'crm-system') // 卡板管理

export const selectStatistics = (data, loadingObj) => fetch('/card/selectStatistics', data, loadingObj, 'crm-system') // 卡板统计

export const orderManagement = (data, loadingObj) => fetch('/customer-order/list', data, loadingObj, 'OEM-setting-system') // 订单管理
export const hideOrder = (data, loadingObj) => fetch('/customer-order/hideCustoemrOrder', data, loadingObj, 'OEM-setting-system') // 隐藏订单

export const batchRetryRecords = (data, loadingObj) => fetch('/customer-order/batchorderRetry', data, loadingObj, 'OEM-setting-system') // 批量重试

export const balanceOrderRetry = (data, loadingObj) => fetch('/balanceRecharge/retrycardBalanceOrder/recheck', data, loadingObj, 'user-recharge-system') // 余额订单重试

export const updateTransId = (data, loadingObj) => fetch('/card-balance-records/updateCardBlanceTransId/recheck', data, loadingObj, 'user-recharge-system') // 修改余额订单交易流水号

export const getProcessingOrderRemark = (data, loadingObj) => fetch('/customer-order/listOrderOngoing', data, loadingObj, 'OEM-setting-system')//查询进行中订单备注

export const stopCardHandle = (data, loadingObj) => fetch('/card/updateBatchPause/recheck', data, loadingObj, 'crm-system') // 停机操作

export const activationCardHandle = (data, loadingObj) => fetch('/card/updateBatchActivate/recheck', data, loadingObj, 'crm-system') // 激活卡操作

export const toBeActivatedCardHandle = (data, loadingObj) => fetch('/card/updateBatchDeactivate/recheck', data, loadingObj, 'crm-system') // 待激活卡操作

export const batchSetPackage = (data, loadingObj) => fetch('/card/setSetMeal/recheck', data, loadingObj, 'crm-system') // 批量设置套餐

export const saveSecondtotalpool = (data, loadingObj) => fetch('/secondtotalpool/save', data, loadingObj, 'inventory-system') // 批量设置套餐

export const initializationLogin = (data, loadingObj) => fetch('/code/send/pictureCode/uid', data, loadingObj, 'oceanside-send-and-check') // 登录页初始化

export const taskInstance = (data, loadingObj) => fetch('/task-instance/list', data, loadingObj, 'card-status-system') // 任务进度查询

export const taskFail = (data, loadingObj) => fetch('/task-fail/list', data, loadingObj, 'card-status-system') // 任务异常信息

export const cardStatusChange = (data, loadingObj) => fetch('/card-status/list', data, loadingObj, 'card-status-system') // 状态更改计划

export const nextMonthStatus = (data, loadingObj) => fetch('/setmeal-time-status/list', data, loadingObj, 'card-status-system') // 次月生效计划

export const batchSettingImaginaryNumber = (data, loadingObj) => fetch('/secondtotalpool/updateCardImaginaryBySecondPool', data, loadingObj, 'inventory-system') // 批量设置虚数

export const checkBatchSettingImaginaryNumber = (data, loadingObj) => fetch('/secondtotalpool/selectCardImaginary', data, loadingObj, 'inventory-system') // 校验批量设置虚数

export const listForAgent = (data, loadingObj) => fetch('/secondtotalpool/listForAgent', data, loadingObj, 'inventory-system') // 次月生效计划

export const interfaceAccountConfiguration = (data, loadingObj) => fetch('/account/list', data, loadingObj, 'inventory-system') // 接口账号配置
export const interfaceAccountConfigurationSelect = (data, loadingObj) => fetch('/account/get/channelCompany', data, loadingObj, 'inventory-system') // 接口账号配置页初始化
export const interfaceAccountConfigurationSave = (data, loadingObj) => fetch('/account/save/recheck', data, loadingObj, 'inventory-system','upload') // 接口账号配置页保存
export const interfaceAccountConfigurationEdit = (data, loadingObj) => fetch('/account/single', data, loadingObj, 'inventory-system') // 接口账号配置页编辑
export const interfaceAccountConfigurationTest = (data, loadingObj) => fetch('/TestChannel/testChannel/recheck', data, loadingObj, 'crm-system') // 接口账号配置卡号测试
export const clearAccountCache = (data, loadingObj) => fetch('/account/updateAccountCache', data, loadingObj, 'inventory-system') // 通道操作 -》清理缓存
export const getLastClearTime = (data, loadingObj) => fetch('/account/getAccountOperator', data, loadingObj, 'inventory-system') // 通道操作 -》获取末次清理缓存时间&轮询速度

export const updateShowIccid = (data, loadingObj) => fetch('/account/updateShowIccid', data, loadingObj, 'inventory-system') // 通道操作 -》获取末次清理缓存时间&轮询速度
export const updateAccountOperator = (data, loadingObj) => fetch('/account/updateAccountOperator', data, loadingObj, 'inventory-system') // 通道操作 -》更新轮询速度

export const initializationForgetPassword = (data, loadingObj) => fetch('/msg/pageKey.dnl', data, loadingObj, 'oceanside-send-and-check') // 初始化忘记密码

export const changePassword = (data, loadingObj) => fetch('/OEMController/changePassword/phoneCheck', data, loadingObj, 'OEM-setting-system') // 校验手机号

export const checkPasswordAndSendCheckCode = (data, loadingObj) => fetch('/OEMController/checkPasswordAndSendCheckCode', data, loadingObj, 'OEM-setting-system') // 发送验证码

export const rolesList = (data, loadingObj) => fetch('/role/list', data, loadingObj, 'permission-system') // 权限管理角色列表

export const addRole = (data, loadingObj) => fetch('/role/save/recheck', data, loadingObj, 'permission-system') // 权限管理添加角色

export const permissionList = (data, loadingObj) => fetch('/menu/listMenusByOemOrAgent', data, loadingObj, 'permission-system') // 权限管理列表

export const submitCheckedPermission = (data, loadingObj) => fetch('/menu/listMenusByEmployeeId', data, loadingObj, 'permission-system') // 选中权限回显
// 通过roleId获取权限
export const listMenusByRoleId = (data, loadingObj) => fetch('/menu/listMenusByRoleId', data, loadingObj, 'permission-system') // 选中权限回显

export const savePermission = (data, loadingObj) => fetch('/role-menu/save/recheck', data, loadingObj, 'permission-system') // 保存权限

export const deletePermission = (data, loadingObj) => fetch('/role/delete', data, loadingObj, 'permission-system') // 删除权限

export const employeeList = (data, loadingObj) => fetch('/employee-info/list', data, loadingObj, 'crm-system') // 雇员列表

export const addEmployee = (data, loadingObj) => fetch('/employee-info/save/recheck', data, loadingObj, 'crm-system') // 添加雇员

export const deleteEmployee = (data, loadingObj) => fetch('/employee-info/delete', data, loadingObj, 'crm-system') // 删除雇员

export const resetEmployeePassword = (data, loadingObj) => fetch('/employee-info/repassword', data, loadingObj, 'crm-system') // 雇员密码重置
export const loginRoleSave = (data, loadingObj) => fetch('/login-role/save/recheck', data, loadingObj, 'permission-system') // 雇员密码重置
export const listEmployeeRolesIds = (data, loadingObj) => fetch('/role/listEmployeeRolesIds', data, loadingObj, 'permission-system') // 雇员分配权限
export const listRoles = (data, loadingObj) => fetch('/role/listRoles', data, loadingObj, 'permission-system') // 雇员密码重置
export const inventorySetMealListForUser = (data, loadingObj) => fetch('/set-meal/listForUser', data, loadingObj, 'inventory-system') // 代理套餐列表
export const updateSalePrice = (data, loadingObj) => fetch('/set-meal/updateSalePrice', data, loadingObj, 'inventory-system') //  代理设置套餐价格
// 保存套餐组
export const packageSave = (data, loadingObj) => fetch('/set-meal-head/save/recheck', data, loadingObj, 'inventory-system')

export const setMealHeadDelete = (data, loadingObj) => fetch('/set-meal-head/delete', data, loadingObj, 'inventory-system')

// 套餐组列表submitPrimaryFlowPool
export const packageCatList = (data, loadingObj) => fetch('/set-meal-head/list', data, loadingObj, 'inventory-system')
// 获取单个套餐组详情
export const getSetMealHead = (data, loadingObj) => fetch('/set-meal-head/getSetMealHead', data, loadingObj, 'inventory-system')
// 获取setMeal详情
export const getSetMeal = (data, loadingObj) => fetch('/set-meal/getSetMeal', data, loadingObj, 'inventory-system')
//修改套餐开启关闭状态
export const updateMealStatus = (data, loadingObj) => fetch('/set-meal/updateSetMealStatus/recheck', data, loadingObj, 'inventory-system')
export const getSetMealList = (data, loadingObj) => fetch('/set-meal-head/getSetMealList', data, loadingObj, 'inventory-system')
export const getBodyType = (data, loadingObj) => fetch('/equipment/getBodyType', data, loadingObj, 'inventory-system')
export const getEquipment = (data, loadingObj) => fetch('/equipment/getEquipment', data, loadingObj, 'inventory-system')
export const saveEquipment = (data, loadingObj) => fetch('/equipment/save', data, loadingObj, 'inventory-system')
export const selectSetMealHeadList = (data, loadingObj) => fetch('/set-meal-head/selectSetMealHeadList', data, loadingObj, 'inventory-system')
// 保存域名
export const savePayHost = (data, loadingObj) => fetch('/payment/userSave', data, loadingObj, 'OEM-setting-system', 'upload')
// 获取代理ID
export const getAgentId = (data, loadingObj) => fetch('/agent/getAgentId', data, loadingObj, 'OEM-setting-system')

/** ***********域名绑定----------------------------------begin----***/
export const domainBinding = (data, loadingObj) => fetch('/userHostname/updateUserHostName', data, loadingObj, 'OEM-setting-system') // 域名绑定
export const checkDomain = (data, loadingObj) => fetch('/userHostname/checkHostName', data, loadingObj, 'OEM-setting-system') // 校验
export const uploadKey = (data, loadingObj) => fetch('/userHostname/uploadKey', data, loadingObj, 'OEM-setting-system', 'upload') // 上传
export const getDomain = (data, loadingObj) => fetch('/userHostname/getOne', data, loadingObj, 'OEM-setting-system')
export const getDomainHttp = (data, loadingObj) => fetch('/hostname/getOne', data, loadingObj, 'OEM-setting-system')
export const updateDomainHttp = (data, loadingObj) => fetch('/hostname/updateOEMHostName', data, loadingObj, 'OEM-setting-system')

/** ***********域名绑定----------------------------------end----***/
export const getUserHostpay = (data, loadingObj) => fetch('/payment/getUserHostpay', data, loadingObj, 'OEM-setting-system')
export const singleUpdate = (data, loadingObj) => fetch('/card/singleUpdate/recheck', data, loadingObj, 'crm-system')
export const userDataCustomerList = (data, loadingObj) => fetch('/customer/list', data, loadingObj, 'user-data-system') //  用户列表
export const userDataSelectCustomerCard = (data, loadingObj) => fetch('/customer/selectCustomerCard', data, loadingObj, 'user-data-system') // 查看C端客户名下卡
export const userDataListForUser = (data, loadingObj) => fetch('/customer/listForUser', data, loadingObj, 'user-data-system') //  用户列表
export const customerOrder = (data, loadingObj) => fetch('/customer-order/list', data, loadingObj, 'OEM-setting-system')
export const customerOrderStatistics = (data, loadingObj) => fetch('/customer-order/customerOrderStatistics', data, loadingObj, 'OEM-setting-system')

export const setMealListForUser = (data, loadingObj) => fetch('/set-meal/setMealListForUser', data, loadingObj, 'inventory-system')
export const setSalePriceForUser = (data, loadingObj) => fetch('/set-meal/setSalePriceForUser/recheck', data, loadingObj, 'inventory-system')
export const getUserType = (data, loadingObj) => fetch('/user/getAgentType', data, loadingObj, 'crm-system')
// 更新接口
export const refreshCardList = (data, loadingObj) => fetch('/card/refreshCardList ', data, loadingObj, 'crm-system')
export const selectTransactionRecord = (data, loadingObj) => fetch('/transaction-record/selectTransactionRecord ', data, loadingObj, 'crm-system')
export const sumTransactionRecord = (data, loadingObj) => fetch('/transaction-record/selectSumOption ', data, loadingObj, 'crm-system')//查询资金变动总额
// crm-system

export const crmInitEmployee = (data, loadingObj) => fetch('/employee-info/getEmployeeInfo ', data, loadingObj, 'crm-system')
export const crmUpdateEmployee = (data, loadingObj) => fetch('/employee-info/updateEmployeeInfo/recheck ', data, loadingObj, 'crm-system')
export const changePassWordPersonal = (data, loadingObj) => fetch('/login/changePassWord ', data, loadingObj, 'crm-system')
//设置余额预警阈值
export const setBalanceWarning = (data, loadingObj) => fetch('/user/updateCriticalValue/recheck', data, loadingObj, 'crm-system')//设置余额预警阈值
export const getBalanceWarning = (data, loadingObj) => fetch('/user/getCriticalValue', data, loadingObj, 'crm-system')//查询预警阈值
export const getConfig = (data, loadingObj) => fetch('/oem-configdata/getOne', data, loadingObj, 'OEM-setting-system')
export const saveSetting = (data, loadingObj) => fetch('/oem-configdata/saveSetting', data, loadingObj, 'OEM-setting-system')
export const selectIsOEMFlag = (data, loadingObj) => fetch('/user/selectIsOEMFlag', data, loadingObj, 'crm-system')
export const getCardDetail = (data, loadingObj) => fetch('/card/getCardDetail', data, loadingObj, 'crm-system')
export const refresh = (data, loadingObj) => fetch('/card/refreshCardList/recheck', data, loadingObj, 'crm-system')
export const settingCardRealNameStatus = (data, loadingObj) => fetch('/card/settingCardRealNameStatus', data, loadingObj, 'crm-system')

// 解绑操作
export const customerBindingList = (data, loadingObj) => fetch('/customer-binding-his/list', data, loadingObj, 'user-data-system')
export const customerBindingSelectCardByCardNumber = (data, loadingObj) => fetch('/customer-binding-his/selectCardByCardNumber', data, loadingObj, 'user-data-system')
export const customerBindingSave = (data, loadingObj) => fetch('/customer-binding-his/save', data, loadingObj, 'user-data-system')

export const getUserBalance = (data, loadingObj) => fetch('/user/getUserBalance', data, loadingObj, 'crm-system')

export const allMonthByCard = (data, loadingObj) => fetch('/card/allMonthByCard', data, loadingObj, 'crm-system')
export const sumFlowByMonty = (data, loadingObj) => fetch('/card/sumFlowByMonty', data, loadingObj, 'crm-system')
export const dayFlowCard = (data, loadingObj) => fetch('/card/dayFlowCard', data, loadingObj, 'crm-system')//每日用量统计
export const monthFlowCard = (data, loadingObj) => fetch('/card/monthFlowCard', data, loadingObj, 'crm-system')//每月用量统计

export const changeCard = (data, loadingObj) => fetch('/change-card-record/list', data, loadingObj, 'crm-system') // 换卡列表
export const removeChangeCard = (data, loadingObj) => fetch('/change-card-record/delete', data, loadingObj, 'crm-system') // 删除换卡记录
export const markCardChangeFlag = (data, loadingObj) => fetch('/card/markCardChangeFlag/recheck', data, loadingObj, 'crm-system')
export const markCardDictMayChangeCardStatus = (data, loadingObj) => fetch('/card/markCardDictMayChangeCardStatus', data, loadingObj, 'crm-system')

export const sendCard = (data, loadingObj) => fetch('/change-card-record/updateChangeCardRecordCourierNumber/recheck', data, loadingObj, 'crm-system') // 发货

export const terminated = (data, loadingObj) => fetch('/change-card-record/updateChangeCardRecordTerminated', data, loadingObj, 'crm-system') // 换卡列表中拆机
export const coldCardList = (data, loadingObj) => fetch('/card/coldCardList', data, loadingObj, 'inventory-system') // 冷冻卡列表
export const removeCard = (data, loadingObj) => fetch('/card/removeCard/recheck', data, loadingObj, 'inventory-system') // 冷冻卡列表中拆机
export const removeCardList = (data, loadingObj) => fetch('/remove-card-record/list', data, loadingObj, 'inventory-system') // 拆机列表

export const getAgentInfoShort = (data, loadingObj) => fetch('/agent/getUserInfo', data, loadingObj, 'OEM-setting-system')
export const updateUserPhone = (data, loadingObj) => fetch('/agent/updateUserPhone/phoneCheck/recheck', data, loadingObj, 'OEM-setting-system')
export const relieveWx = (data, loadingObj) => fetch('/agent/relieveWx/phoneCheck/recheck', data, loadingObj, 'OEM-setting-system')

// 发送验证码
export const initializationRegister = (data, loadingObj) => fetch('/msg/pageKey.dnl', data, loadingObj, 'oceanside-send-and-check') // 初始化注册页
export const sendVerificationCode = (data, loadingObj) => fetch('/msg/send/identifyCode', data, loadingObj, 'oceanside-send-and-check') // 发送验证码
// 禁用列表
export const listForDisabled = (data, loadingObj) => fetch('/disabled-card/list', data, loadingObj, 'crm-system') // 禁用列表
export const accountListForSelect = (data, loadingObj) => fetch('/disabled-rule/accountListForSelect', data, loadingObj, 'inventory-system') // 初始化通道下拉列表接口
export const setMealHeadForSelect = (data, loadingObj) => fetch('/disabled-rule/setMealHeadForSelect', data, loadingObj, 'inventory-system') // 初始化套餐大类下拉列表接口
export const disabledSave = (data, loadingObj) => fetch('/disabled-rule/save', data, loadingObj, 'inventory-system') // 初始化套餐大类下拉列表接口
// 入库记录
export const inboundList = (data, loadingObj) => fetch('/inbound-order/list', data, loadingObj, 'inventory-system')

export const selectRepeatRecord = (data, loadingObj) => fetch('/transaction-record/selectRepeatRecord', data, loadingObj, 'crm-system')// 查询重复返佣接口
export const removeReapRecords = (data, loadingObj) => fetch('/transaction-record/removeReapRecords', data, loadingObj, 'crm-system')// 去除重复返佣接口
// API账户管理
export const agentKeySave = (data, loadingObj) => fetch('/agent-key/save', data, loadingObj, 'OEM-setting-system')
export const agentKeyList = (data, loadingObj) => fetch('/agent-key/list', data, loadingObj, 'OEM-setting-system')
export const agentKeyDelete = (data, loadingObj) => fetch('/agent-key/delete', data, loadingObj, 'OEM-setting-system')
// 配置IP白名单
export const IpSave = (data, loadingObj) => fetch('/white-ip-address/save/recheck', data, loadingObj, 'OEM-setting-system')
export const IpList = (data, loadingObj) => fetch('/white-ip-address/list', data, loadingObj, 'OEM-setting-system')
export const IpDelect = (data, loadingObj) => fetch('/white-ip-address/delete', data, loadingObj, 'OEM-setting-system')

// 退卡申请
export const processSave = (data, loadingObj) => fetch('/process/save/recheck', data, loadingObj, 'inventory-system') // 流程发起
export const processListForAgent = (data, loadingObj) => fetch('/process/listForAgent', data, loadingObj, 'inventory-system') // 代理列表
export const processListForAgentStart = (data, loadingObj) => fetch('/process/listForAgentStart', data, loadingObj, 'inventory-system') // 下级代理列表
export const examineFlowAgent = (data, loadingObj) => fetch('/process/examineFlowAgent/recheck', data, loadingObj, 'inventory-system') // 代理列表


export const processHeadList = (data, loadingObj) => fetch('/process-head/list', data, loadingObj, 'inventory-system') // 大流程列表
export const processBackList = (data, loadingObj) => fetch('/card-return-log/list', data, loadingObj, 'crm-system') // 卡回收列表
export const checkCards = (data, loadingObj) => fetch('/process/getCardNumberByProcessId', data, loadingObj, 'inventory-system') // 查看卡详情
export const getProcess = (data, loadingObj) => fetch('/process/getProcessByHeadId', data, loadingObj, 'inventory-system') // 流程详情
export const examineFlowOem = (data, loadingObj) => fetch('/process/examineFlowOem/recheck', data, loadingObj, 'inventory-system') // OEM审核
// 添加出库
export const outBoundAppointagent = (data, loadingObj) => fetch('/outbound-order/outBoundAppointagent', data, loadingObj, 'inventory-system')
// OEM之间的交易订单记录
export const oemTransList = (data, loadingObj) => fetch('/oem-trans/list', data, loadingObj, 'inventory-system')
export const retryOemTrans = (data, loadingObj) => fetch('/oem-trans/retryOrder', data, loadingObj, 'inventory-system')
export const getLoginName = (data, loadingObj) => fetch('/user/getLoginName', data, loadingObj, 'crm-system')// 代理账号接口

export const thirdCompanys = (data, loadingObj) => fetch('/account/listThirdAccount', data, loadingObj, 'OEM-setting-system')
export const listChannelCompany = (data, loadingObj) => fetch('/account/listChannelCompany', data, loadingObj, 'OEM-setting-system')
export const thirdAccountList = (data, loadingObj) => fetch('/account/thirdAccountList', data, loadingObj, 'OEM-setting-system')

export const thirdSelectList = (data, loadingObj) => fetch('/outbound-order/listShendaThirdOutbound', data, loadingObj, 'inventory-system')

export const batchThirdInventory = (data, loadingObj) => fetch('/card/batchThirdInventory/recheck', data, loadingObj, 'inventory-system')

export const batchThirdInventoryForShuolang = (data, loadingObj) => fetch('/card/batchThirdInventoryForShuolang/recheck', data, loadingObj, 'inventory-system', 'upload')

export const changeCardFlow = (data, loadingObj) => fetch('/card/changeCard/recheck', data, loadingObj, 'user-data-system')
export const getOemIdForBackDoor = (data, loadingObj) => fetch('/OEMController/getOemIdForBackDoor', data, loadingObj, 'OEM-setting-system')

export const apiLogList = (data, loadingObj) => fetch('/logMongo/apiLogList', data, loadingObj, 'OEM-setting-system')
export const changeLogList = (data, loadingObj) => fetch('/logMongo/changeLogList', data, loadingObj, 'OEM-setting-system')
export const stateLogList = (data, loadingObj) => fetch('/card-log/cardLogList', data, loadingObj, 'user-data-system')
export const billingLogList = (data, loadingObj) => fetch('/logMongo/billingLogList', data, loadingObj, 'OEM-setting-system')
export const getSearchLog = (data, loadingObj) => fetch('/systemLog/listLog', data, loadingObj, 'OEM-setting-system') //日志查询

export const banlanceList = (data, loadingObj) => fetch('/card/listForCardList', data, loadingObj, 'crm-system')

export const updateOrderStatus = (data, loadingObj) => fetch('/customer-order/updateOrderStatus/recheck', data, loadingObj, 'OEM-setting-system')
export const refresdeleteOrderFlow= (data, loadingObj) => fetch('/card/reSearch/recheck', data, loadingObj, 'inventory-system')

export const updateAccountStatus = (data, loadingObj) => fetch('/account/updateAccountStatus', data, loadingObj, 'inventory-system')
export const checkAccountBalance = (data, loadingObj) => fetch('/account/getBalance', data, loadingObj, 'OEM-setting-system')//查看再三方通道内的余额

export const listTrainingRotation = (data, loadingObj) => fetch('/training-rotation/list', data, loadingObj, 'OEM-setting-system')
export const returnCards = (data, loadingObj) => fetch('/card/returnCard', data, loadingObj, 'crm-system')
export const initAccountSelect = (data, loadingObj) => fetch('/account/initAccountSelect', data, loadingObj, 'inventory-system')
export const initSetMealHeadSelect = (data, loadingObj) => fetch('/set-meal-head/initSetMealHeadSelect', data, loadingObj, 'inventory-system')
export const initSetMealSelect = (data, loadingObj) => fetch('/set-meal-head/initSetMealSelect', data, loadingObj, 'inventory-system')

export const copySetmealHead = (data, loadingObj) => fetch('/set-meal-head/copySetmealHead', data, loadingObj, 'inventory-system')

// 根据卡号 进行 headerid 分组
export const searchSetmealsGroupByHeaderId = (data, loadingObj) => fetch('/order/searchSetmealsGroupByHeaderId', data, loadingObj, 'crm-system')
export const getUserOrderById = (data, loadingObj) => fetch('/transaction-record/getUserOrderById', data, loadingObj, 'crm-system')
export const batchRecharge = (data, loadingObj) => fetch('/cus-batch-recharge-order/batchRecharge/recheck', data, loadingObj, 'crm-system')
export const balanceRecharge = (data, loadingObj) => fetch('/cus-batch-recharge-order/balanceRecharge/recheck', data, loadingObj, 'crm-system')
export const getBatchRechargeAmount = (data, loadingObj) => fetch('/cus-batch-recharge-order/getBatchRechargePrice/recheck', data, loadingObj, 'crm-system')//批量充值 查询订单金额
// 订单状态是否成功！
export const orderStatus = (data, loadingObj) => fetch('/cus-batch-recharge-order/orderStatus', data, loadingObj, 'crm-system')
export const cusBatchRechargeOrderList = (data, loadingObj) => fetch('/cus-batch-recharge-order/list', data, loadingObj, 'crm-system')

export const batchRechargeDetailList = (data, loadingObj) => fetch('/order/listCustomerOrder', data, loadingObj, 'crm-system')
export const retryBatchRecharge = (data, loadingObj) => fetch('/cus-batch-recharge-order/retryBatchRecharge/recheck', data, loadingObj, 'crm-system')

export const cardFlowList = (data, loadingObj) => fetch('/card-flow/list', data, loadingObj, 'crm-system')
export const listOutrecord = (data, loadingObj) => fetch('/card/listOutrecord', data, loadingObj, 'crm-system')
export const excelDownload = (data, loadingObj) => fetch('/export-config/excel/download', data, loadingObj, 'OEM-setting-system')
export const exportData = (data, loadingObj) => fetch('/export-config/exportData', data, loadingObj, 'OEM-setting-system')
export const missionList = (data, loadingObj) => fetch('/mission/list', data, loadingObj, 'OEM-setting-system')
export const deleteOrderFlow = (data, loadingObj) => fetch('/customer-order/deleteOrderFlow', data, loadingObj, 'OEM-setting-system')
export const checkOrderFlow = (data, loadingObj) => fetch('/customer-order/getCardFlow', data, loadingObj, 'OEM-setting-system')//查询订单下套餐流量使用情况
export const customerRefund = (data, loadingObj) => fetch('/customer-refund/customerRefund/recheck', data, loadingObj, 'OEM-setting-system')
export const customerRefundForPrice = (data, loadingObj) => fetch('/customer-refund/customerRefundForPrice/recheck', data, loadingObj, 'OEM-setting-system')//2021-4-15新订单退款接口
//修改支付流水号
export const updateTransactionId = (data, loadingObj) => fetch('/customer-order/updateOrderPayId', data, loadingObj, 'OEM-setting-system')
// export const shuolangInventory = (data, loadingObj) => fetch('/userHostname/uploadKey', data, loadingObj, 'OEM-setting-system', 'upload') // 上传
// 删除card-flow
export const deleteCardFlow = (data, loadingObj) => fetch('/card-flow/delete', data, loadingObj, 'crm-system')

//刷新订单
export const refreshOrder = (data, loadingObj) => fetch('/customer-order/refreshOrder/recheck', data, loadingObj, 'OEM-setting-system')
//订单退款
export const refundOrder = (data, loadingObj) => fetch('/balanceRecharge/cardBalanceRefund/recheck', data, loadingObj, 'user-recharge-system')


// 首页-查询首页数据
export const getHomeNumber = (data, loadingObj) => fetch('/home-data/oemHome', data, loadingObj, 'OEM-setting-system')
// 首页-折线通道流量统计 日和月
export const getHomeflowNumber = (data, loadingObj) => fetch('/home-data/oemHomeAccountFlow', data, loadingObj, 'OEM-setting-system')
// 首页-流量使用排名前10统计
export const getListRank = (data, loadingObj) => fetch('/home/getListRank', data, loadingObj, 'OEM-setting-system')
// 首页-折线统计收入情况
export const getHomeProfitNumber = (data, loadingObj) => fetch('/home-data/oemHomeAmount', data, loadingObj, 'OEM-setting-system')
// 首页-级代理利润情况排行榜前10
export const getHomeProfitRank = (data, loadingObj) => fetch('/home/getHomeProfitRank', data, loadingObj, 'OEM-setting-system')
//首页-代理数据展示
export const getHomeAgentData = (data, loadingObj) => fetch('/home-data/userHome', data, loadingObj, 'OEM-setting-system')
//首页-代理表格数据展示（含翻页）
export const getHomeAgentTableData = (data, loadingObj) => fetch('/home-data/userHomeByDateTypePage ', data, loadingObj, 'OEM-setting-system')
//首页-代理表格数据统计
export const getHomeAgentAccountData = (data, loadingObj) => fetch('/home-data/userHomeByDateType ', data, loadingObj, 'OEM-setting-system')
// 公告管理-保存
export const saveNotice = (data, loadingObj) => fetch('/notice/save/recheck', data, loadingObj, 'crm-system')
// 公告管理-获取列表
export const getNoticeList = (data, loadingObj) => fetch('/notice/list', data, loadingObj, 'crm-system')
// 公告管理-删除
export const deleteNotice = (data, loadingObj) => fetch('/notice/delete', data, loadingObj, 'crm-system')
// 短信查询-获取短信列表
export const getShortMessageList = (data, loadingObj) => fetch('/short-message/list', data, loadingObj, 'crm-system')
// 短信查询-查询短信详情
export const getShortMessageDetail = (data, loadingObj) => fetch('/short-message/detailsList', data, loadingObj, 'crm-system')
// 短信查询-查询可用短信数量
export const getUsableCount = (data, loadingObj) => fetch('/oem-message-count/usableCount', data, loadingObj, 'crm-system')
// 订单查看-查询购买商品记录
export const getOrderList = (data, loadingObj) => fetch('/oem-order/list', data, loadingObj, 'crm-system')

// OEM出库-号段校验,起始号段一次,结束号段一次,共两次
export const checkCardNumber = (data, loadingObj) => fetch('/outbound-order/checkCardNumber', data, loadingObj, 'inventory-system')
// OEM出库-出库校验batchInventory
export const checkOutRecord = (data, loadingObj) => fetch('/outbound-order/checkOutRecord/recheck', data, loadingObj, 'inventory-system')
// 新 入库-批量入库-连续卡号
export const batchInventory = (data, loadingObj) => fetch('/card/cardbatchInventory/recheck', data, loadingObj, 'inventory-system','upload') // 添加规则
// 新 入库-批量入库-连续卡号--联通
export const batchInventoryUnicom = (data, loadingObj) => fetch('/card/newInboundOrder/recheck', data, loadingObj, 'inventory-system','upload') // 添加规则
// 新 入库-批量入库-一行一个卡号
export const subBatchInventoryNew = (data, loadingObj) => fetch('/card/subcardbatchInventory', data, loadingObj, 'inventory-system') // 添加规则
// 新 入库-批量入库-刷新上游数据
export const reSearch = (data, loadingObj) => fetch('/card/retryCardbatchInventory', data, loadingObj, 'inventory-system')
// 新 入库-批量入库-下载excel
export const getInStockExcelUrl = (data, loadingObj) => fetch('/card/excel/download/white', data, loadingObj, 'inventory-system')
// 新 出库-批量出库刷新上游数据接口地址(暂未使用)
export const refreshOutStockData = (data, loadingObj) => fetch('/outbound-order/retryCardbatchInventory', data, loadingObj, 'inventory-system')
// 新 出库-批量未出库卡号excel下载(暂未使用)
export const getOutStockExcelUrl = (data, loadingObj) => fetch('/outbound-order/excel/download/white', data, loadingObj, 'inventory-system')

// M26 余额套餐
// 增加修改接口
export const saveBalanceHead = (data, loadingObj) => fetch('/card-balance-head/save', data, loadingObj, 'inventory-system')
// 余额套餐组列表(无分页)
export const getbalanceHeadSelect = (data, loadingObj) => fetch('/card-balance-head/initCardBalanceHeadSelect', data, loadingObj, 'inventory-system')
// 余额套餐组列表
export const getbalanceHeadList = (data, loadingObj) => fetch('/card-balance-head/list', data, loadingObj, 'inventory-system')
// 删除余额套餐组
export const deletebalanceHead = (data, loadingObj) => fetch('/card-balance-head/delete', data, loadingObj, 'inventory-system')
// 增加修改组内接口
export const saveBalanceDetail = (data, loadingObj) => fetch('/card-balance-detail/save/recheck', data, loadingObj, 'inventory-system')
// 余额套餐组內列表
export const getbalanceDetailsList = (data, loadingObj) => fetch('/card-balance-detail/list', data, loadingObj, 'inventory-system')
// 删除组内余额套餐
export const deletebalanceDetail = (data, loadingObj) => fetch('/card-balance-detail/delete', data, loadingObj, 'inventory-system')
// 修改开启或者关闭状态
export const togglebalanceDetailStatus = (data, loadingObj) => fetch('/card-balance-detail/updateStatus', data, loadingObj, 'inventory-system')
// M27
// 卡板管理-卡板列表-通道名称，下拉选
export const getRealNameList = (data, loadingObj) => fetch('/realname-channel/realNameList', data, loadingObj, 'crm-system')
// 卡板管理-卡板列表-保存通道
export const setCardRealName = (data, loadingObj) => fetch('/card/settingCardRealNameStatus', data, loadingObj, 'crm-system')
// M28 批量设置余额套餐组
export const setBalanceRoad = (data, loadingObj) => fetch('/card/saveBalanceHead', data, loadingObj, 'crm-system')



// M29
// 实名通道-增加修改接口
export const saveRealnameChannel = (data, loadingObj) => fetch('/realname-channel/save/recheck', data, loadingObj, 'crm-system')
// 实名通道-列表
export const getRealnameChannelList = (data, loadingObj) => fetch('/realname-channel/list', data, loadingObj, 'crm-system')
// 实名通道-删除
export const deleteRealnameChannel = (data, loadingObj) => fetch('/realname-channel/delete', data, loadingObj, 'crm-system')
// M30
// 设置只能用余额付款
export const setBuyInAmount = (data, loadingObj) => fetch('/card/settingBuyInAmount', data, loadingObj, 'crm-system')
// M31 修改套餐组下的套餐启用或禁用
export const toggleUpdateStatus = (data, loadingObj) => fetch('/set-meal/updateStatus', data, loadingObj, 'inventory-system')
// M32
// 审核申请-实名申请-审核列表
export const realNameCheckList = (data, loadingObj) => fetch('/realname-examine/list', data, loadingObj, 'crm-system')
// 审核申请-实名申请-更改实名状态
export const updateRealNameStatus = (data, loadingObj) => fetch('/realname-examine/updateStatus/recheck', data, loadingObj, 'crm-system')
// 实名模板下拉选 20200409
export const getTemplateOptions = (data, loadingObj) => fetch('/realname-check/initSelect', data, loadingObj, 'user-data-system')
// M38 换卡物流
export const getExpressinFormationList = (data, loadingObj) => fetch('/expressinformation/list', data, loadingObj, 'crm-system')
//     物流详情
export const getExpressinFormationInfo = (data, loadingObj) => fetch('/expressinformation/getExpressinformation', data, loadingObj, 'crm-system');

// 充值短信,可选列表
export const getMessageGoodsOptions = (data, loadingObj) => fetch('/goods/selectGoodsList', data, loadingObj, 'OEM-setting-system');
// 充值短信,付款二维码
export const getPayCodeImg = (data, loadingObj) => fetch('/oem-order/getOemPayQRCode/recheck', data, loadingObj, 'OEM-setting-system');
// 支付结果轮询
export const getOemOrderById = (data, loadingObj) => fetch('/oem-order/getOemOrderById', data, loadingObj, 'OEM-setting-system');


// 退款列表
export const refundList = (data, loadingObj) => fetch('/customer-refund/list', data, loadingObj, 'OEM-setting-system');
// 余额退款列表
export const balanceRefundList = (data, loadingObj) => fetch('/card-balance-refund/list', data, loadingObj, 'user-recharge-system');
// 退款详情列表
export const balanceRefundDetail = (data, loadingObj) => fetch('/card-balance-refund/getListByCardBalanceId', data, loadingObj, 'user-recharge-system');
export const initSetMealHeadList = (data, loadingObj) => fetch('/set-meal-head/initSetMealHeadList', data, loadingObj, 'inventory-system');
export const banlanceStatics = (data, loadingObj) => fetch('/card-balance-records/sumBalanceForOem', data, loadingObj, 'user-recharge-system');

export const uploadNoticePicture = (data, loadingObj) => fetch('/notice/uploadNoticePicture', data, loadingObj, 'crm-system');

export const cardBalanceRecordsForPC = (data, loadingObj) => fetch('/card-balance-records/listForPc', data, loadingObj, 'user-recharge-system');
//余额到账
export const cardBalanceUpdateTransId = (data, loadingObj) => fetch('/card-balance-detail/updateTransId/recheck', data, loadingObj, 'OEM-setting-system');

export const importChangeExcel = (data, loadingObj) => fetch('/card/importChangeExcel', data, loadingObj, 'crm-system', 'upload');

export const openBatchRechargePermissionForUser = (data, loadingObj) => fetch('/user/openBatchRechargePermissionForUser', data, loadingObj, 'crm-system');
export const shutDownBatchRechargePermissionForUser = (data, loadingObj) => fetch('/user/shutDownBatchRechargePermissionForUser', data, loadingObj, 'crm-system');
export const disableTrueName = (data, loadingObj) => fetch('/card/disableTrueName', data, loadingObj, 'crm-system');

// 回收卡记录
export const getRecoverCardRecords = (data, loadingObj) => fetch('/card-return-log/list', data, loadingObj, 'crm-system');

//转流校验卡号
export const checkChangeCardNumber = (data, loadingObj) => fetch('/card/cardList', data, loadingObj, 'crm-system');
//取消换卡
export const cancelChange = (data, loadingObj) => fetch('/card/removeChangeCardFlog/recheck', data, loadingObj, 'crm-system');
//启用换卡
export const activeUser = (data, loadingObj) => fetch('/user/removeDisabledUser', data, loadingObj, 'crm-system');
export const updateCardBalance = (data, loadingObj) => fetch('/card/updateCardBalance/recheck', data, loadingObj, 'crm-system');

export const removeDisabledCard = (data, loadingObj) => fetch('/disabled-card/delete', data, loadingObj, 'crm-system');
export const resetMbFlow = (data, loadingObj) => fetch('/card-flow/resetMbFlow', data, loadingObj, 'crm-system');
export const resetChangeCount = (data, loadingObj) => fetch('/card/resetChangeCount/recheck', data, loadingObj, 'crm-system');
export const resetPhoneNumber = (data, loadingObj) => fetch('/card/resetPhoneNumber/recheck', data, loadingObj, 'crm-system');
export const backUserMoneyByOrderId = (data, loadingObj) => fetch('/order/backUserMoneyByOrderId', data, loadingObj, 'user-recharge-system');
//查询批量操作卡列表
export const BulkOperateCardsRecords = (data, loadingObj) =>fetch('/batch-oprator-record/list', data, loadingObj, 'batch-job-center');
//查询卡列表
export const cardPageByRule = (data, loadingObj) =>fetch('/batch-oprator-record/cardPageByRule', data, loadingObj, 'batch-job-center');
//批量操作
export const batchCardsDisabled = (data, loadingObj) =>fetch('/batch-oprator-record/save/recheck', data, loadingObj,'batch-job-center');
//查询代理充值费率
export const agentRechargeAccount = (data, loadingObj) =>fetch('/transaction-record/checkPrice', data, loadingObj,'crm-system');
//查询代理提现费率
export const agentWithdrawAccount = (data, loadingObj) =>fetch('/agent-apply-balance/checkApplyMoney', data, loadingObj,'OEM-setting-system');
//查看批量操作所有卡号
export const cardNumberRecords = (data, loadingObj) =>fetch('/batch-oprator-record/opratorErrorRecordList', data, loadingObj,'batch-job-center');
//查看可下载表格列表
export const excelRecords = (data, loadingObj) =>fetch('/batch-oprator-record/initFilesByBatchOpratorId', data, loadingObj,'batch-job-center');
//查看可下载表格列表
export const exportexcelRecords = (data, loadingObj) =>fetch('/file-export/exportExcelById', data, loadingObj,'file-export-system');
//批量操作上传文件
export const cardNumberUpload = (data, loadingObj) =>fetch('/batch-oprator-record/importExcelByRule', data, loadingObj,'batch-job-center', 'upload');
//批量操作上传文件
export const cardFlowsDayUpload = (data, loadingObj) =>fetch('/card-flow/importExcelFlows', data, loadingObj,'billing-API-system', 'upload');
//批量操作上传文件
export const cardFlowsMonthUpload = (data, loadingObj) =>fetch('/card-flow/importExcelMonthFlows', data, loadingObj,'billing-API-system', 'upload');

//查询批量设置代理权限 代理列表
export const agentListInnit = (data, loadingObj) =>fetch('/user/initUserList', data, loadingObj,'crm-system');
//设置或取消代理批量充值权限
export const setAgentbatchRechargPower = (data, loadingObj) =>fetch('/user/batchSetRechargePermission', data, loadingObj,'crm-system');
//批量操作赠送流量校验
export const batchFlowSend = (data, loadingObj) =>fetch('/batch-oprator-record/freeCardFlowCheck', data, loadingObj,'batch-job-center');
//查看回收站失败卡号
export const recycleBinErrorList = (data, loadingObj) =>fetch('/card-recycle-bin-log/cardRecycleErrorRecordList', data, loadingObj,'batch-job-center');
//查看回收站卡号下载列表
export const recycleBinDownloadList = (data, loadingObj) =>fetch('/card-recycle-bin-log/exportCardRecycleLogById', data, loadingObj,'batch-job-center');
//查看回收站卡号列表
export const recycleBinCardList = (data, loadingObj) =>fetch('/card-recycle-bin/list', data, loadingObj,'batch-job-center');
//批量or单条 清空or还原回收站数据
export const recycleBinCardOperation = (data, loadingObj) =>fetch('/card-recycle-bin/operateRecycleBinCard/recheck', data, loadingObj,'batch-job-center');
//删除卡日志列表
export const cardRecycleBinList = (data, loadingObj) =>fetch('/card-recycle-bin-log/list', data, loadingObj,'batch-job-center');
//兑换流量记录列表
export const exchangeFlowList = (data, loadingObj) =>fetch('/create-secret-record/list', data, loadingObj,'batch-job-center');
//批量导出
export const bathExport = (data, loadingObj) =>fetch('/batch-oprator-record/save/recheck', data, loadingObj,'batch-job-center');



//新增兑换流量记录
export const addExchangeFlowRecord = (data, loadingObj) =>fetch('/create-secret-record/save', data, loadingObj,'batch-job-center');
//兑换流量记录列表全部
export const allExchangeFlowList = (data, loadingObj) =>fetch('/secret/list', data, loadingObj,'batch-job-center');
//兑换流量记录下载
export const exchangeFlowDownload = (data, loadingObj) =>fetch('/secret/exportExceclForSecret/white', data, loadingObj,'batch-job-center');
//卡密废弃/启用接口
export const exchangeFlowEdite = (data, loadingObj) =>fetch('/secret/unableSecret', data, loadingObj,'batch-job-center');
//卡密废弃/启用接口数量查询
export const exchangeFlowSearch = (data, loadingObj) =>fetch('/secret/ableOpratorRecord', data, loadingObj,'batch-job-center');
//卡密套餐大类下拉
export const packageCatListForMonth = (data, loadingObj) => fetch('/set-meal-head/listForMonth', data, loadingObj, 'inventory-system')
//机卡解绑 /card/unlockForOem
export const cardUnlockForOem = (data, loadingObj) => fetch('/card/unlockForOem/recheck', data, loadingObj, 'user-recharge-system')
/*导出接口*/
//卡列表： /exportCardExcel
export const downloadCardList = (data, loadingObj) => fetch('/file-export/exportCardExcel', data, loadingObj, 'file-export-system');
// 订单列表：/exportCutomerOrder
export const downLoadCutomerOrder = (data, loadingObj) => fetch('/file-export/exportCutomerOrder', data, loadingObj, 'file-export-system');
//订单列表 ==》查看订单变更日志
export const orderBilling = (data, loadingObj) => fetch('/customer-order/orderChangeRecordsList', data, loadingObj, 'OEM-setting-system');
export const getProfit = (data, loadingObj) => fetch('/customer-order/getProfit', data, loadingObj, 'OEM-setting-system');
// 资金变动： /exportTransactionRecord
export const downloadTransactionRecord = (data, loadingObj) => fetch('/file-export/exportTransactionRecord', data, loadingObj, 'file-export-system');
// 充值余额交易记录：   /exportCardBalanceList
export const downloadCardBalanceList = (data, loadingObj) => fetch('/file-export/exportCardBalanceList', data, loadingObj, 'file-export-system');
// 提现申请记录:     /exportAgentApplyList
export const downloadAgentApplyList = (data, loadingObj) => fetch('/file-export/exportAgentApplyList', data, loadingObj, 'file-export-system');
// 换卡记录:    /exportChangcardlist
export const downloadChangCardList = (data, loadingObj) => fetch('/file-export/exportChangcardlist', data, loadingObj, 'file-export-system');
//导出一级代理利润
export const selectAgentProfit = (data, loadingObj) => fetch('/file-export/selectAgentProfit', data, loadingObj, 'file-export-system');
//导出用户手机号
export const customerPhoneExport = (data, loadingObj) => fetch('/file-export/exportCustomerlist', data, loadingObj, 'file-export-system');
//退款校验
export const orderRefundCheck = (data, loadingObj) => fetch('/customer-refund/checkBackUserMoney', data, loadingObj, 'OEM-setting-system');
//通过订单id 查询订单所有备注
export const selectOrderAllRemark = (data, loadingObj) =>fetch('/customer-order/queryRemark', data, loadingObj,'OEM-setting-system');
//通过iccid 查询msisdn
export const searchMsisdn = (data, loadingObj) =>fetch('/card/selectOneCard', data, loadingObj,'user-recharge-system');
//第三方表单入库
export const batchThirdInventoryForShuolangForm = (data, loadingObj) =>fetch('/card/batchThirdInventoryForInsert/recheck', data, loadingObj,'inventory-system');
//保存备案信息
export const saveIcpInfo = (data, loadingObj) =>fetch('/icp-filing/save/recheck', data, loadingObj,'OEM-setting-system');
//查询备案
export const getIcpInfo = (data, loadingObj) =>fetch('/icp-filing/query/white', data, loadingObj,'OEM-setting-system');
/*协议部分接口*/
//添加协议 saveAgreement
export const saveAgreement = (data, loadingObj) =>fetch('/agreement/save/recheck', data, loadingObj,'crm-system');
//查询协议列表   getAllAgreement
export const getAllAgreement = (data, loadingObj) =>fetch('/agreement/list', data, loadingObj,'crm-system');
export const delCustomer = (data, loadingObj) =>fetch('/customer/delCustomer', data, loadingObj,'crm-system');
//开启or协议    changAgreementStateById
export const changAgreementStateById = (data, loadingObj) =>fetch('/agreement/update/recheck', data, loadingObj,'crm-system');
//查询登录协议   getLoginAgreement
export const getLoginAgreement = (data, loadingObj) =>fetch('/agreement/getLoginProtocol/white', data, loadingObj,'crm-system');
//查询代理是否需要签署文件
export const checkDailiSingStatus = (data, loadingObj) =>fetch('/user-agreement-examine/getAgreementList', data, loadingObj,'crm-system');
//提交代理信息审核结果
export const reviewUserStatus = (data, loadingObj) =>fetch('/user/updateDictAuditStatus/recheck', data, loadingObj,'crm-system');

//查询代理协议   getAgentAgreement
export const getAgentAgreement = (data, loadingObj) =>fetch('/user-agreement-examine/getAgreementList', data, loadingObj,'crm-system');
//代理签署协议   agentSignAgreement
export const agentSignAgreement = (data, loadingObj) =>fetch('/user-agreement-examine/save/recheck', data, loadingObj,'crm-system');



//查询支付方式
export const getPayWay = (data, loadingObj) =>fetch('/payment-head/list', data, loadingObj,'OEM-setting-system');
//查询oem支付方式
export const getOemPayWay = (data, loadingObj) =>fetch('/payment/list', data, loadingObj,'OEM-setting-system');
//新增 or 修改oem支付方式
export const saveOemPayWay = (data, loadingObj) =>fetch('/payment/savePayment/recheck', data, loadingObj,'OEM-setting-system','upload');
//删除oem支付方式
export const deleteOemPayWay = (data, loadingObj) =>fetch('/payment/physicalDeletion/recheck', data, loadingObj,'OEM-setting-system');
//开启 or 关闭oem支付方式
export const updateOemPayWay = (data, loadingObj) =>fetch('/payment/logicalDeletion/recheck', data, loadingObj,'OEM-setting-system');
//查询用户可用支付方式
export const choosePayment = (data, loadingObj) =>fetch('/payment/choosePayment', data, loadingObj,'OEM-setting-system');
//查询用户短信充值可用支付方式
export const chooseMessagePayment = (data, loadingObj) =>fetch('/payment/choosePayment', data, loadingObj,'OEM-setting-system');
//查询用户已配置公众号信息列表
export const getWeChatList = (data, loadingObj) =>fetch('/payment/gzhConfigList', data, loadingObj,'OEM-setting-system');
//保存公众号信息
export const saveWeChat = (data, loadingObj) =>fetch('/payment/saveGzhConfig/recheck', data, loadingObj,'OEM-setting-system','upload');
//开启公众号状态
export const updateWeChat = (data, loadingObj) =>fetch('/payment/updateGzhConfigStatus/recheck', data, loadingObj,'OEM-setting-system');

//添加提现支付方式
export const addCashOutWay = (data, loadingObj) =>fetch('/payment/updateOrSavePayment/recheck', data, loadingObj,'OEM-setting-system','upload');
//查询提现方式列表
export const getCashOutWay = (data, loadingObj) =>fetch('/payment/paymentSelect', data, loadingObj,'OEM-setting-system');
//删除付款方式
export const deleteOemCashOutWay = (data, loadingObj) =>fetch('/payment/movePay/recheck', data, loadingObj,'OEM-setting-system');
//校验体检金额与打款方式
export const getCashOutMoney = (data, loadingObj) =>fetch('/agent-apply-balance/checkApplyMoney', data, loadingObj,'OEM-setting-system');
//获取绑定提现账户二维码
export const bindCashOutWay = (data, loadingObj) =>fetch('/hostname/getAuthorizeId', data, loadingObj,'OEM-setting-system');


export const selectUserAgreementExamine = (data, loadingObj) =>fetch('/user-agreement-examine/selectUserAgreementExamine', data, loadingObj,'crm-system');
export const getUserLogin = (data, loadingObj) =>fetch('/user/getUserLogin', data, loadingObj,'crm-system');


export const updateAgreementStatus = (data, loadingObj) =>fetch('/user-agreement-examine/updateStatus/recheck', data, loadingObj,'crm-system');

